class TravelExpensesController < ApplicationController
  before_filter :account_required, :login_required, :find_user
  
  def index
    @expenses = 0
  end
  
  def new
    @expense = Expense.new
  end
  
  private
  def find_user
    @user = User.find_by_id(params[:user_id], :conditions => ['company_id = ?', current_account.id])
    raise ActiveRecord::RecordNotFound, "Page not found" if @user.nil?
  end
end
